<?php
class CommonComponent extends Object{
    
    function initialize(&$controller, $settings = array()) {
        // saving the controller reference for later use
        $this->controller =& $controller;
        Configure::load('my_configs');
    }

    function base_url(){
        return Configure::read('frontend.url'); 
    }
    
    function structure($data){
        echo "<pre>";
        print_r($data);
        echo "</pre>";
    }
    
}